package com.sch.hsy.system.service.impl;

import com.sch.hsy.common.core.domain.entity.SysBook;
import com.sch.hsy.system.domain.SysRead;
import com.sch.hsy.system.mapper.SysReadMapper;
import com.sch.hsy.system.service.ISysReadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 阅读管理 服务实现
 */
@Service
public class SysReadServiceImpl implements ISysReadService {

    @Autowired
    private SysReadMapper sysReadMapper;


    @Override
    public List<SysRead> selectReadList(SysRead read) {
        return sysReadMapper.selectReadList(read);
    }

    @Override
    public int insertRead(SysRead read) {
        return sysReadMapper.insertRead(read);
    }

    @Override
    public int deleteReadById(Long id) {
        return sysReadMapper.deleteReadById(id);
    }

    @Override
    public int updateRead(SysRead read) {
        return sysReadMapper.updateRead(read);
    }

    @Override
    public List<Map<String, Object>> selectReadRankingList() {
        return sysReadMapper.selectReadRankingList();
    }

    @Override
    public List<Map<String, Object>> selectReadRankingListIndex() {
        return sysReadMapper.selectReadRankingListIndex();
    }

    @Override
    public List<Map<String, Object>> selectReadRankingByClass() {
        return sysReadMapper.selectReadRankingByClass();
    }
}
